<template>
  <van-nav-bar
    :left-arrow="leftArrow"
    :title="title"
    :left-text="leftText"
    :border="border"
    :color="color"
  />
</template>

<script>
import Header from './LeftArrowHeader'

export default {
  name: 'NoLeftArrowHeader',
  components: {
    Header
  },
  props: {
    title: {
      type: String,
      default: undefined
    },
    leftText: {
      type: String,
      default: ''
    },
    rightText: {
      type: String,
      default: ''
    },
    leftArrow: {
      type: Boolean,
      default: false
    },
    search: {
      type: Boolean,
      default: false
    },
    border: {
      type: Boolean,
      default: true
    },
    color: {
      type: String,
      default: undefined
    }
  },
  methods: {
    /* onClickLeft() {
      this.$router.push({ path: '/' })
    },
    onClickRight() {
      Toast('按钮')
    }*/
  }
}
</script>

<style scoped lang="less" rel="stylesheet/less">

</style>
